/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package metodos_estaticos_tema3;

/**
 *
 * @author Alex
 */
public class Ejer_31_bloque3 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        for (int n = 30; ; n++) {
            
            boolean primo = calculo.comprobarprimo(n);
            
            if(primo=true)
            {
                System.out.println(n);
                break;
            }
                    
                    
        }
    }
}
